package high.concurent.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 前端传的地址对象信息
 */
@Data
@ApiModel(value = "添加地址对象", description = "用户添加地址请求对象")
public class AddressRequest {

    /**
     * 是否默认收货地址：0->否；1->是
     */
    @JsonProperty("default_status")
    @ApiModelProperty(value = "是否默认收货地址: (0:否;1:是)", example = "1")
    private Integer defaultStatus;

    /**
     * 收发货人姓名
     */
    @JsonProperty("receive_name")
    @ApiModelProperty(value = "收货人姓名", example = "张三")
    private String receiveName;

    /**
     * 收货人电话
     */
    @ApiModelProperty(value = "收货人电话", example = "13655487451")
    private String phone;

    /**
     * 省/直辖市
     */
    @ApiModelProperty(value = "省/直辖市", example = "辽宁省")
    private String province;

    /**
     * 市
     */
    @ApiModelProperty(value = "市", example = "大连市")
    private String city;

    /**
     * 区
     */
    @ApiModelProperty(value = "区", example = "甘井子区")
    private String region;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址", example = "高新园区-三丰大厦B座-102")
    @JsonProperty("detail_address")
    private String detailAddress;

}
